<!--
 * @Descripttion: 
 * @version: 
 * @Author: Ansel
 * @Date: 2020-04-09 19:00:52
 * @LastEditors: Ansel
 * @LastEditTime: 2020-04-09 20:34:54
 -->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/echarts.js"></script>
    <style>
        #chart1,
        #chart2 {
            width: 1000px;
            height: 800px;
            float: left;
        }
    </style>
</head>
<body>
    <div id="chart1"></div>
    <script>
        var myCharts = echarts.init(document.getElementById("chart1"));
        myCharts.setOption({
            grid:{
                show:true,
                left:"20%",
                width:"50%",
                containLabel:false,
                backgroundColor:"grey",
                borderColor:"#000"
            },
            xAxis:{
                // data:['衬衫',]
                splitLine:{ //坐标轴的刻度线
                    show:false
                },
                axisLine:{ //坐标轴的轴线
                    show:false
                }
            },
            yAxis:{
                splitLine:{
                    show:false
                },
                axisLine:{ 
                    show:false
                }
            },
            series:{
                name:'销量',
                type:'bar',
                data:[5,20,36,10,19,24]
            }
        });
    </script>
</body>
</html>